#ifndef FORM_H
#define FORM_H

#include <QtGui/QWidget>
#include <QtCore/QDateTime>
#include "ui_form.h"

class QTimer;
class QDateTime;

class Form : public QWidget, public Ui::Form {
    Q_OBJECT
public:
    Form(QWidget *parent = 0);
    ~Form();

signals:
    void disableAll();
    void enableAll();
    void fire();
    void enterPressed();

public slots:
    void onStart();
    void onCancel();
    void onDownCountChanged(bool b);
    void onDisableAll();
    void onEnableAll();
    void onTimeout();
    void onFire();
    void updateTime();

protected:
    void changeEvent(QEvent *e);
    void keyPressEvent ( QKeyEvent * event );
    QTimer * timer;
    QDateTime time;

private:
    Ui::Form *m_ui;
};

#endif // FORM_H
